import { cloneDeep } from "lodash-es";

export const useResetFormData = (formFields = [], form = {}) => {
  let _data = {};
  formFields.forEach((field) => {
    _data[field.key] = form[field.key];
  });
  return cloneDeep(_data)
};
